using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class GetBottleCountRequest : GeneratedMessageLite<GetBottleCountRequest, GetBottleCountRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<GetBottleCountRequest, GetBottleCountRequest.Builder>
		{
			private bool resultIsReadOnly;
			private GetBottleCountRequest result;
			protected override GetBottleCountRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override GetBottleCountRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override GetBottleCountRequest DefaultInstanceForType
			{
				get
				{
					return GetBottleCountRequest.DefaultInstance;
				}
			}
			public string UserName
			{
				get
				{
					return this.result.UserName;
				}
				set
				{
					this.SetUserName(value);
				}
			}
			public uint RequestTime
			{
				get
				{
					return this.result.RequestTime;
				}
				set
				{
					this.SetRequestTime(value);
				}
			}
			public Builder()
			{
				this.result = GetBottleCountRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(GetBottleCountRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private GetBottleCountRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					GetBottleCountRequest other = this.result;
					this.result = new GetBottleCountRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override GetBottleCountRequest.Builder Clear()
			{
				this.result = GetBottleCountRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override GetBottleCountRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new GetBottleCountRequest.Builder(this.result);
				}
				return new GetBottleCountRequest.Builder().MergeFrom(this.result);
			}
			public override GetBottleCountRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override GetBottleCountRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is GetBottleCountRequest)
				{
					return this.MergeFrom((GetBottleCountRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override GetBottleCountRequest.Builder MergeFrom(GetBottleCountRequest other)
			{
				return this;
			}
			public override GetBottleCountRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override GetBottleCountRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(GetBottleCountRequest._getBottleCountRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = GetBottleCountRequest._getBottleCountRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 10u)
					{
						if (num3 != 16u)
						{
							if (WireFormat.IsEndGroupTag(num))
							{
								return this;
							}
							this.ParseUnknownField(input, extensionRegistry, num, text);
						}
						else
						{
							this.result.hasRequestTime = input.ReadUInt32(ref this.result.requestTime_);
						}
					}
					else
					{
						this.result.hasUserName = input.ReadString(ref this.result.userName_);
					}
				}
				return this;
			}
			public GetBottleCountRequest.Builder SetUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasUserName = true;
				this.result.userName_ = value;
				return this;
			}
			public GetBottleCountRequest.Builder ClearUserName()
			{
				this.PrepareBuilder();
				this.result.hasUserName = false;
				this.result.userName_ = "";
				return this;
			}
			public GetBottleCountRequest.Builder SetRequestTime(uint value)
			{
				this.PrepareBuilder();
				this.result.hasRequestTime = true;
				this.result.requestTime_ = value;
				return this;
			}
			public GetBottleCountRequest.Builder ClearRequestTime()
			{
				this.PrepareBuilder();
				this.result.hasRequestTime = false;
				this.result.requestTime_ = 0u;
				return this;
			}
		}
		public const int UserNameFieldNumber = 1;
		public const int RequestTimeFieldNumber = 2;
		private static readonly GetBottleCountRequest defaultInstance;
		private static readonly string[] _getBottleCountRequestFieldNames;
		private static readonly uint[] _getBottleCountRequestFieldTags;
		private bool hasUserName;
		private string userName_ = "";
		private bool hasRequestTime;
		private uint requestTime_;
		private int memoizedSerializedSize = -1;
		public static GetBottleCountRequest DefaultInstance
		{
			get
			{
				return GetBottleCountRequest.defaultInstance;
			}
		}
		public override GetBottleCountRequest DefaultInstanceForType
		{
			get
			{
				return GetBottleCountRequest.DefaultInstance;
			}
		}
		protected override GetBottleCountRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public string UserName
		{
			get
			{
				return this.userName_;
			}
		}
		public uint RequestTime
		{
			get
			{
				return this.requestTime_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasRequestTime;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasUserName)
				{
					num += CodedOutputStream.ComputeStringSize(1, this.UserName);
				}
				if (this.hasRequestTime)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.RequestTime);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private GetBottleCountRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] getBottleCountRequestFieldNames = GetBottleCountRequest._getBottleCountRequestFieldNames;
			if (this.hasUserName)
			{
				output.WriteString(1, getBottleCountRequestFieldNames[1], this.UserName);
			}
			if (this.hasRequestTime)
			{
				output.WriteUInt32(2, getBottleCountRequestFieldNames[0], this.RequestTime);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasUserName)
			{
				num ^= this.userName_.GetHashCode();
			}
			if (this.hasRequestTime)
			{
				num ^= this.requestTime_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			GetBottleCountRequest getBottleCountRequest = object_0 as GetBottleCountRequest;
			return getBottleCountRequest != null && (this.hasUserName == getBottleCountRequest.hasUserName && (!this.hasUserName || this.userName_.Equals(getBottleCountRequest.userName_))) && (this.hasRequestTime == getBottleCountRequest.hasRequestTime && (!this.hasRequestTime || this.requestTime_.Equals(getBottleCountRequest.requestTime_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<GetBottleCountRequest, GetBottleCountRequest.Builder>.PrintField("UserName", this.hasUserName, this.userName_, writer);
			GeneratedMessageLite<GetBottleCountRequest, GetBottleCountRequest.Builder>.PrintField("RequestTime", this.hasRequestTime, this.requestTime_, writer);
		}
		public static GetBottleCountRequest ParseFrom(byte[] data)
		{
			return GetBottleCountRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private GetBottleCountRequest MakeReadOnly()
		{
			return this;
		}
		public static GetBottleCountRequest.Builder CreateBuilder()
		{
			return new GetBottleCountRequest.Builder();
		}
		public override GetBottleCountRequest.Builder ToBuilder()
		{
			return GetBottleCountRequest.CreateBuilder(this);
		}
		public override GetBottleCountRequest.Builder CreateBuilderForType()
		{
			return new GetBottleCountRequest.Builder();
		}
		public static GetBottleCountRequest.Builder CreateBuilder(GetBottleCountRequest prototype)
		{
			return new GetBottleCountRequest.Builder(prototype);
		}
		static GetBottleCountRequest()
		{
			GetBottleCountRequest.defaultInstance = new GetBottleCountRequest().MakeReadOnly();
			GetBottleCountRequest._getBottleCountRequestFieldNames = new string[]
			{
				"RequestTime",
				"UserName"
			};
			GetBottleCountRequest._getBottleCountRequestFieldTags = new uint[]
			{
				16u,
				10u
			};
			object.ReferenceEquals(micromsg.Proto.GetBottleCountRequest.Descriptor, null);
		}
	}
}
